-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to customize fz_store_size in Java bindings #53
base: master
Are you sure you want to change the base?
Conversation
0fc247f
to
93d0a34
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, if I build a MuPDF library with FZ_STORE_DEFAULT_SIZE_IN_MB defined, it'll make no difference to anyone that uses that library, as they won't have that defined when they include context.h, so they'll get the default value.
If people want to use a different value for the store, they should state it explicitly. That is the purpose of this field after all!
If your intent is to allow runtime definition of the store size used in the java bindings, then that's not unreasonable, but I don't think you need the include/mupdf/fitz/context.h changes for that.
Hi @robinwatts! Yes, my main case is to allow runtime definitions of the store size in java bindings and it's covered by change in |
Leave the definition of FZ_STORE_DEFAULT alone. In the Java code: #ifdef FZ_JAVA_STORE_SIZE That way you can predefine FZ_JAVA_STORE_SIZE when you build the java bindings, or you can use the same environment variable. Don't mess around with specifying it in MB. |
93d0a34
to
927e002
Compare
@robinwatts Thank you! Updated! |
@robinwatts Is everything fine? Could pr be merged? |
No description provided.